 
package com.xbongbong.sys.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.ToString;

/**
 * WeakManageEntity
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/2/19 11:08
 */
@ToString
public class WeakManageEntity extends Entity {

	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = -1L;

	//========== properties ==========

    /**自增ID*/
	private Integer id;
    /**公司编号*/
	private String corpid;
    /**管理者/助手ID*/
	private String supStaffId;
    /**被管理者ID*/
	private String subStaffId;
    /**被管理部门ID*/
	private Long subDepId;
    /**标示是部门还是员工，1员工，2部门*/
	private Integer type;
	/**添加时间*/
	private Integer addTime;
    /** 更新时间*/
	private Integer updateTime;
    /**删除标识位*/
	private Integer del;

    /**扩展字段
	//下属员工或部门名字*/
	private String name;

	public WeakManageEntity() {
		int now = DateUtil.getInt();
		this.del = 0;
		this.addTime = now;
		this.updateTime = now;
	}

	
    //========== getters and setters ==========
    
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	
	public String getCorpid() {
		return corpid;
	}

	public void setCorpid(String corpid) {
		this.corpid = corpid;
	}

	public String getSupStaffId() {
		return supStaffId;
	}

	public void setSupStaffId(String supStaffId) {
		this.supStaffId = supStaffId;
	}

	public String getSubStaffId() {
		return subStaffId;
	}

	public void setSubStaffId(String subStaffId) {
		this.subStaffId = subStaffId;
	}

	public Long getSubDepId() {
		return subDepId;
	}

	public void setSubDepId(Long subDepId) {
		this.subDepId = subDepId;
	}

	public Integer getType() {
		return type;
	}
	
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getAddTime() {
		return addTime;
	}
	
	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}
	
	public Integer getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Integer updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDel() {
		return del;
	}
	
	public void setDel(Integer del) {
		this.del = del;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}

